#!/bin/bash
#
# hook file for git_hash shtamp in version
#
EX=$(git rev-parse HEAD | awk '{ print substr( $0, 0, 7 ) }' ) && cat server/base.h | sed s/^#define\ GIT_HASH\ \".*\"$/#define\ GIT_HASH\ \"$EX\"/ > test.txt && mv test.txt server/base.h 

